-- GENERATED SPELL FOR [Elder Timberling] --


function spell0_2030(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(332,pUnit)
pUnit:RegisterEvent('Sorts_2030', 2000, 1)
end

function spell1_2030(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_2030', 593, 1)
end

function Sorts_2030(pUnit, Event)
local choix_sorts_2030 = math.random(0, 1)
if choix_sorts_2030 == 0 then
pUnit:RegisterEvent('spell0_2030', 1, 1)
end
if choix_sorts_2030 == 1 then
pUnit:RegisterEvent('spell1_2030', 1, 1)
end
end

function mob2030_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2030', math.random(1500, 3000), 1)
end

function mob2030_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2030_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2030_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2030, 1, 'mob2030_Action')
RegisterUnitEvent(2030, 2, 'mob2030_Leave')
RegisterUnitEvent(2030, 3, 'mob2030_Kill')
RegisterUnitEvent(2030, 4, 'mob2030_Die')
